package com.leiyuee.mybatis.entity;

import lombok.Data;

import javax.persistence.Table;

/*
CREATE TABLE IUser(
`id`  varchar(64)    NOT NULL comment "用户账号",
`name` varchar(64)    NOT NULL comment "姓名",
`sex` varchar(64)    not NULL comment "性别",
`age` int(11) DEFAULT NULL comment "年龄",
`address` varchar(64)   DEFAULT NULL comment "地址",
`phone` varchar(64)   DEFAULT NULL comment "电话",
`email` varchar(50) DEFAULT NULL COMMENT '邮箱',
`remark` varchar(64)   DEFAULT NULL comment "备注",
`version` int(10) DEFAULT '1' COMMENT '乐观锁',
`createDate` datetime not NULL comment "创建日期",
`createUser` varchar(64) NOT NULL comment "创建者",
`updateDate` datetime default NULL comment "修改日期",
`updateUser` varchar(64) default NULL comment "修改者",
primary key(`id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
 */
@Data
@Table(name = "IUser")
public class IUser extends BaseEntity {

    private String name;
    private String sex;
    private Integer age;
    private String address;
    private String email;
    private String phone;
    private String remark;
    private Integer version;
}
